package org.dromara.iot.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.iot.domain.IotUpkeepTemplate;

import java.util.List;

/**
 * 电梯保养模板业务对象 iot_upkeep_template
 *
 * @author lsl
 * @date 2024-06-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IotUpkeepTemplate.class, reverseConvertGenerate = false)
public class IotUpkeepTemplateBo extends BaseEntity {

    /**
     * 模板ID
     */
    @NotNull(message = "模板ID不能为空", groups = {EditGroup.class})
    private Long templateId;

    /**
     * 绑定的公司ID
     */
    private Long companyId;

    /**
     * 模板名称
     */
    @NotBlank(message = "模板名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String templateName;

    /**
     * 电梯类型
     */
    @NotBlank(message = "电梯类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private String elevatorType;

    /**
     * 保养类型
     */
    @NotBlank(message = "保养类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private String upkeepType;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = {AddGroup.class, EditGroup.class})
    private String remark;

    /**
     * 电梯保养项目列表
     */
    private List<IotUpkeepProjectBo> upkeepProjectList;
}
